-- GENERATED SPELL FOR [Mo'arg Incinerator] --


function spell0_23354(pUnit, Event) --@Acid Geyser,n/a--
pUnit:FullCastSpellOnTarget(44431,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_23354', 5000, 1)
end

function spell1_23354(pUnit, Event) --@Mighty Charge,n/a--
pUnit:FullCastSpellOnTarget(36606,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_23354', 510, 1)
end

function spell2_23354(pUnit, Event) --@Sundering Cleave,n/a--
pUnit:FullCastSpellOnTarget(25174,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_23354', 30301, 1)
end

function Sorts_23354(pUnit, Event)
local choix_sorts_23354 = math.random(0, 2)
if choix_sorts_23354 == 0 then
pUnit:RegisterEvent('spell0_23354', 1, 1)
end
if choix_sorts_23354 == 1 then
pUnit:RegisterEvent('spell1_23354', 1, 1)
end
if choix_sorts_23354 == 2 then
pUnit:RegisterEvent('spell2_23354', 1, 1)
end
end

function mob23354_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_23354', math.random(1500, 3000), 1)
end

function mob23354_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23354_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23354_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(23354, 1, 'mob23354_Action')
RegisterUnitEvent(23354, 2, 'mob23354_Leave')
RegisterUnitEvent(23354, 3, 'mob23354_Kill')
RegisterUnitEvent(23354, 4, 'mob23354_Die')
